import service from '@/utils/request'

// @Tags ProductSpecSize
// @Summary 创建产品规格-尺码
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.ProductSpecSize true "创建产品规格-尺码"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"创建成功"}"
// @Router /productSpecSize/createProductSpecSize [post]
export const createProductSpecSize = (data) => {
  return service({
    url: '/productSpecSize/createProductSpecSize',
    method: 'post',
    data
  })
}

// @Tags ProductSpecSize
// @Summary 删除产品规格-尺码
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.ProductSpecSize true "删除产品规格-尺码"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
// @Router /productSpecSize/deleteProductSpecSize [delete]
export const deleteProductSpecSize = (params) => {
  return service({
    url: '/productSpecSize/deleteProductSpecSize',
    method: 'delete',
    params
  })
}

// @Tags ProductSpecSize
// @Summary 批量删除产品规格-尺码
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body request.IdsReq true "批量删除产品规格-尺码"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
// @Router /productSpecSize/deleteProductSpecSize [delete]
export const deleteProductSpecSizeByIds = (params) => {
  return service({
    url: '/productSpecSize/deleteProductSpecSizeByIds',
    method: 'delete',
    params
  })
}

// @Tags ProductSpecSize
// @Summary 更新产品规格-尺码
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.ProductSpecSize true "更新产品规格-尺码"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"更新成功"}"
// @Router /productSpecSize/updateProductSpecSize [put]
export const updateProductSpecSize = (data) => {
  return service({
    url: '/productSpecSize/updateProductSpecSize',
    method: 'put',
    data
  })
}

// @Tags ProductSpecSize
// @Summary 用id查询产品规格-尺码
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data query model.ProductSpecSize true "用id查询产品规格-尺码"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"查询成功"}"
// @Router /productSpecSize/findProductSpecSize [get]
export const findProductSpecSize = (params) => {
  return service({
    url: '/productSpecSize/findProductSpecSize',
    method: 'get',
    params
  })
}

// @Tags ProductSpecSize
// @Summary 分页获取产品规格-尺码列表
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data query request.PageInfo true "分页获取产品规格-尺码列表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"获取成功"}"
// @Router /productSpecSize/getProductSpecSizeList [get]
export const getProductSpecSizeList = (params) => {
  return service({
    url: '/productSpecSize/getProductSpecSizeList',
    method: 'get',
    params
  })
}
